{include file='header.tpl'}
{include file='admin/leftcol.tpl'}
<div id="left-area">
<div class="entry post clearfix width-for-all-img">
              <div class="breadcrumb">
            <span class="raquo"></span><a href="/">Главная</a>
           <span class="raquo"> &raquo; </span><a href="{geturl controller="admin" action="index"}">Админ панель</a>  
           <span class="raquo"> &raquo; </span><a href="{geturl controller='admin' action='setting'}">Настройки</a>  
    </div>
    <h1 class="category-title">Настройки</h1> 
<div id="tabs" class="htabs">
            <a href="#tab-1" class="selected">Настройки сайта</a>
            <a href="#tab-2">Тескт уведомлений</a>

        </div>
    <div class="form">
    <form method="post" action="{geturl action='settings'}">
          <div id="tab-1" class="tab-content">
        {foreach from=$configObj1 item='item'}
        <div class="row">
            <span class="td4" style="width:200px;padding-top: 5px;"> <label>{$item->config_display_name}: </label></span>
           <span class="td4" style="padding: 5px;">  {if $item->config_type == 'text'}
            <input type="text" name="{$item->config_name}"  value="{$item->config_value}" />
            {else}
           <textarea name="{$item->config_name}" cols="10" style="width:400px" rows="15">{$item->config_value}</textarea>
            {/if}
            <br>{$item->config_description}</span>
        </div>
        <div class="botline"></div>
        {/foreach}
        </div>
        <div id="tab-2" class="tab-content">
        {foreach from=$configObj2 item='item'}
        <div class="row">
            <span class="td4" style="width:200px;padding-top: 5px;"> <label>{$item->config_display_name}: </label></span>
           <span class="td4" style="padding: 5px;">  {if $item->config_type == 'text'}
            <input type="text" name="{$item->config_name}"  value="{$item->config_value}" />
            {else}
           <textarea name="{$item->config_name}" cols="10" style="width:400px" rows="15">{$item->config_value}</textarea>
            {/if}
            <br>{$item->config_description}</span>
        </div>
        <div class="botline"></div>
        {/foreach}
        </div>
        <div class="submit">
            <input type="submit" class="button green-pink" value="Сохранить настройки" /></div>
    </form>
    </div>
    
</div> 

</div>
                <script type="text/javascript"><!--
  $('#tabs a').tabs();
          //--></script> 
{include file='footer.tpl'}